31c4e97e679d849d1c89715e078304822c6e16e3,xstream/src/java/com/thoughtworks/xstream/core/util/SerializationMembers.java,SerializationMembers,callReadResolve,#Object#,66

Before Change


                } catch (final IllegalAccessException e) {
                    throw new ObjectAccessException("Could not call " + resultType.getName() + ".readResolve()", e);
                } catch (final InvocationTargetException e) {
                    throw new ObjectAccessException("Could not call " + resultType.getName() + ".readResolve()", e
                        .getTargetException());
                }
            } else {
                return result;

After Change


                try {
                    return readResolveMethod.invoke(result);
                } catch (final IllegalAccessException e) {
                    ex = new ObjectAccessException("Cannot access method", e);
                } catch (final InvocationTargetException e) {
                    ex = new ConversionException("Failed calling method", e.getTargetException());
                }
                ex.add("method", resultType.getName() + ".readResolve()");
                throw ex;